﻿<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
   	Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<table border="1">
	<tr>
		<td style="border-bottom: 1px solid #ccc;margin-bottom:5px;" colspan="2">
			<div class="titlelist" style="margin-bottom:0px;"><span><% out.print(resource.getString("AdminConsole.Page.Console.add"));%></span></div>
		</td>
	</tr>
	<tr>
		<td style="text-align:right;width:40%;">
		<% out.print(resource.getString("AdminConsole.Page.Console.dialogCorporageName"));%></td>
		<td width="60%">
			<input type="text" id="title" size="30" maxlength="200" >
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.dialogMainOffice"));%></td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogAddress"));%></td>
		<td class="textleft">
			<input type="text" id="addressmain" ></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogCountry"));%></td>
		<td class="textleft">
			<select onChange="print_stateCorporate('statemain',this.selectedIndex);" id="countrymain" class="widthCountryField"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.State"));%></td>
		<td class="textleft">
			<select id="statemain"  class="widthCountryField"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogCity"));%></td>
		<td class="textleft">
			<input type="text" id="citymain" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogZipCode"));%></td>
		<td class="textleft">
			<input type="text" id="zipcodemain" size="30">
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.ContactPersonDetail"));%></td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Salutation"));%></td>
		<td class="textleft">
			<select id="salutationperson"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogFirstName"));%></td>
		<td class="textleft">
			<input type="text" id="firstnameperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogLastname"));%></td>
		<td class="textleft">
			<input type="text" id="lastnameperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Designation"));%></td>
		<td class="textleft">
			<input type="text" id="designationperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.officePhone"));%></td>
		<td class="textleft">
			<input type="text" id="phoneperson" size="30" maxlength="15" > &nbsp; &nbsp;  Extn# <input type="text" id="extnperson" size="5" maxlength="15" >
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.OfficeFax"));%></td>
		<td class="textleft">
			<input type="text" id="officefaxperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("simpleLabel.email"));%></td>
		<td class="textleft">
			<input type="text" id="emailperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Mobile"));%></td>
		<td class="textleft">
			<input type="text" id="mobileperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Gender"));%></td>
		<td class="textleft">
			<select id="genderperson">
				<option value="m">
					<% out.print(resource.getString("AdminConsole.Page.Console.Male"));%>
				</option>
				<option value="fm">
					<% out.print(resource.getString("AdminConsole.Page.Console.Female"));%>
				</option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.DOB"));%></td>
		<td class="textleft">
			<select id="dateperson"></select>
			<select id="monthperson" onchange="checkoptiondate($(this))"></select>
			<select id="yearperson"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Website"));%></td>
		<td class="textleft">
			<input type="text" id="websiteperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.MainBillAddress"));%></td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.SameAsMainOffice"));%></td>
		<td class="textleft">
			<input type="checkbox" id="sameasmainoffice" onclick="sameasmain()">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.BillCompanyName"));%></td>
		<td class="textleft">
			<input type="text" id="titlebill" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Address"));%></td>
		<td class="textleft">
			<input type="text" id="addressbill" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogCountry"));%></td>
		<td class="textleft">
			<select type="text" id="country2" onchange="print_stateCorporate('state2',this.selectedIndex);"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogDetailState"));%></td>
		<td class="textleft">
			<select type="text" id="state2" class="widthCountryField"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogCity"));%></td>
		<td class="textleft">
			<input type="text" id="citybill" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogZipCode"));%></td>
		<td class="textleft">
			<input type="text" id="zipcodebill" size="30">
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.MainBillContact"));%></td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.SameAsContactPerson"));%></td>
		<td class="textleft">
			<input type="checkbox" id="samecontactperson" onchange="samecontactperson()" >
		</td>
	</tr><tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Salutation"));%></td>
		<td class="textleft">
			<select id="salutationbillcontact"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogFirstName"));%></td>
		<td class="textleft">
			<input type="text" id="firstnamecontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogLastname"));%></td>
		<td class="textleft">
			<input type="text" id="lastnamecontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Designation"));%></td>
		<td class="textleft">
			<input type="text" id="designationcontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogDetailOfficePhone"));%></td>
		<td class="textleft">
			<input type="text" id="officephonecontactperson" size="30"> &nbsp; &nbsp;  Extn# <input type="text" id="extncontactperson" size="5" maxlength="15" >
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.OfficeFax"));%></td>
		<td class="textleft">
			<input type="text" id="officefaxcontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.dialogEmail"));%></td>
		<td class="textleft">
			<input type="text" id="emailcontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Mobile"));%></td>
		<td class="textleft">
			<input type="text" id="mobilecontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Gender"));%></td>
		<td class="textleft">
			<select id="gendercontactperson">
				<option value="m">
					<% out.print(resource.getString("AdminConsole.Page.Console.Male"));%>
				</option>
				<option value="fm">
					<% out.print(resource.getString("AdminConsole.Page.Console.Female"));%>
				</option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.DOB"));%></td>
		<td class="textleft">
			<select id="datecontactperson"></select>
			<select id="monthcontactperson" onchange="checkoptiondate($(this))"></select>
			<select id="yearcontactperson"></select>
		</td>
	</tr>
	<tr>
		<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.Website"));%></td>
		<td class="textleft">
			<input type="text" id="websitecontactperson" size="30">
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.CreditCardDetail"));%></td>
	</tr>
	<tr>
		<td colspan="2">
			<table style="width:50%;" border="0" cellspacing="1" cellpadding="0" class="small_tbl">
				<tbody>
					<tr>
						<th width="8%" align="center" valign="top">#</th>
						<th width="27%" align="center" valign="top"><strong><% out.print(resource.getString("AdminConsole.Page.Console.name"));%></strong>
						</th>
						<th width="27%" align="center" valign="top"><strong><% out.print(resource.getString("AdminConsole.Page.Console.CardNumber"));%></strong>
						</th>
						<th width="17%" align="center" valign="top"><strong><% out.print(resource.getString("AdminConsole.Page.Console.Type"));%></strong>
						</th>
						<th width="21%" align="center" valign="top"><strong><% out.print(resource.getString("AdminConsole.Page.Console.Expiry"));%></strong>
						</th>
						<th width="21%" align="center" valign="top"><strong><% out.print(resource.getString("simpleLabel.action"));%></strong>
						</th>
					</tr>
					<tr id='listcorpcredit'>
						<td colspan="6" class="titlecenter">
							<% out.print(resource.getString("AdminConsole.Page.Console.NoCreditCard"));%>
						</td>
					</tr>
					</tr>
				</tbody>
			</table>
		</td>
	</tr>
	<tr>
		<td>
		<a href="javascript:setCountry();" onclick="document.getElementById('ccTdId').style.display='block'"><strong><% out.print(resource.getString("AdminConsole.Page.Console.AddCreditCardDetail"));%></strong></a>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<table border="0" cellspacing="0" cellpadding="5" id="ccTdId" style="display: none;">
				<tbody>
					<tr>
						<td colspan="5">
							<input  maxlength="200" id="ccFName"  type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.NameOnCard"));%>" size="35">
						</td>
					</tr>
					<tr>
						<td>
							<input  maxlength="16" id="ccNo"  type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.CreditCardNo"));%>">
							<select  id="ccType" class="input-style3">
								<option style="color:#000000" class="drp_val" value="4598">Visa</option>
								<option style="color:#000000" class="drp_val" value="4601">Online Payment Gateway</option>
								<option style="color:#000000" class="drp_val" value="11444">Solo</option>
							</select>
						</td>
						<td><strong><% out.print(resource.getString("AdminConsole.Page.Console.Expiry"));%></strong>
						</td>
						<td>
							<input maxlength="20" id="expiryMonth"  type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.MM"));%>" size="2">/
							<input maxlength="20" id="expiryYear" type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.YYYY"));%>" size="4">
						</td>
						<td align="right"><strong><% out.print(resource.getString("AdminConsole.Page.Console.CVC"));%></strong>
						</td>
						<td>
							<input maxlength="4" id="cvc" value="" type="password" class="input-style3" size="10">
						</td>
					</tr>
					<tr>
						<td height="10" colspan="5"></td>
					</tr>
					<tr>
						<td colspan="5"><strong><% out.print(resource.getString("AdminConsole.Page.Console.BillingAddress"));%></strong>
						</td>
					</tr>
					<tr>
						<td colspan="5">
							<input maxlength="500" id="ccAddress1"  type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.Address"));%>" size="40">&nbsp;
							<select id="country3"  class="input-style3" onchange="print_stateCorporate('state3',this.selectedIndex);"></select><br>
							<select id="state3"  class="input-style3" ></select>
							<input  maxlength="200" id="ccCity"   type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.City"));%>" size="20">
							<input  maxlength="20" id="ccZipCode"   type="text" class="input-style3" placeholder="<% out.print(resource.getString("AdminConsole.Page.Console.ZipCode"));%>" size="20">
						</td>
					</tr>
				</tbody>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<table>
				<tr>
					<td class="textRight" width="45%"><% out.print(resource.getString("AdminConsole.Page.Console.CreditLimit"));%></td>
					<td class="textleft" width="55%">
						<input type="text" id="creditlimit" size="20"> <% out.print((String)session.getAttribute("symbol")); %>
					</td>
				</tr>
				<tr>
					<td class="textRight"><% out.print(resource.getString("AdminConsole.Page.Console.PaymentTerms"));%></td>
					<td class="textleft">
						<input type="text" id="paymentterms" size="20"><% out.print(resource.getString("AdminConsole.Page.Console.Day"));%>
					</td>
				</tr>
				<tr id="trdisccorp">
				  <td align="left" class="txt12"><strong><% out.print(resource.getString("AdminConsole.Page.Console.CommissionDetails"));%></strong><br>
					<em class="txt11">Global Commission 0.00%</em></td>
				  <td colspan="2" align="left" class="txt12"><table border="0" cellspacing="0" cellpadding="0">
					  <tbody><tr>
						<td><input class="input-style3" id="commission" value="0.00" type="text" size="10" maxlength="18" style="width:40px;"> %</td>
						<td nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;</td>
					  </tr>
					</tbody></table></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.Validity"));%></td>
	</tr>
	<tr id="listvalidity">
	</tr>
	<tr>
		<td colspan="3" align="left" id="addValidityLink">
		<a href="javascript:;" onclick="ValidityCorporate($(this))"><% out.print(resource.getString("AdminConsole.Page.Console.AddValidity"));%></a>
		</td>
	</tr>
	<tr>
		<td class="bgAdd" style="text-align:left; font-weight:bold;" colspan="2"><% out.print(resource.getString("AdminConsole.Page.Console.OtherCommission"));%></td>
	</tr>
	<tr>
		<td colspan="2">
			<table style="width:50%;" border="0" cellspacing="1" cellpadding="0" class="small_tbl" id="tablePosCommssion">
				<tbody>
				<tr>
					<th width="4%"></th>
					<th width="33%" align="left" height="24"><strong><% out.print(resource.getString("AdminConsole.Page.Console.POS"));%></strong></th>
					<th width="33%" align="left"><strong><% out.print(resource.getString("AdminConsole.Page.Console.Commission"));%></strong></th>
					<th width="15%" align="left"><strong><% out.print(resource.getString("simpleLabel.action"));%></strong></th>
				</tr>
				<tr id="posRow_checked">
					<!--<td></td>
					<td>
						<input name="posPoints[]" id="posPoints_1" type="hidden" value="2502">
						<input name="PosName[]" id="PosName_1" type="hidden" value="Room Charge">Room Charge</td>
					<td>
						<input type="text" name="poscommissionPers[]" style="width:30px;" id="commissionPerPers_1" value="30">%</td>
					<td><a href="javascript:;" onclick="delPosPoint(this)">Delete</a>
					</td>-->
				</tr>
				</tbody>
			</table>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="left">
			<a href="#123" onclick="posCorporate($(this))"><% out.print(resource.getString("AdminConsole.Page.Console.addposcommission"));%></a> <br><br>
		</td>
	</tr>
	<tr>
		<td align="left" colspan="2" style="text-align:center;"><% out.print(resource.getString("simpleLabel.noteDialog"));%></td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="ui-newdialog-button bgAdd">
				<div style="text-align:center;">
				<button id="btnAddCorporate" style="text-align:center" class="btn" onclick="AddEventClickCorporate();"><% out.print(resource.getString("simpleLabel.Save"));%></button>
				<button onclick="showCorporate()" style="text-align:center" class="btn"><% out.print(resource.getString("simpleLabel.cancel"));%></button>
				</div>
			</div>
		</td>
	</tr>
</table>